const baseUrl = process.env.VUE_APP_API_BASE_URL
const api = {
  project: {
    setState: 'base/bus/project/setState',
    exportUrl: 'base/bus/project/export',
    page: 'base/bus/project/PurchasePage',
    list: 'base/bus/project/list',
    get: 'base/bus/project/get',
    add: 'base/bus/project/save',
    update: 'base/bus/project/update',
    remove: 'base/bus/project/remove',
    projectStatus: 'base/bus/project/getprojectStatus'
  },
  materials: {
    page: 'base/system/bmp/page?type=1',
    applyPurchase: 'base/system/bmp/applyPurchase',
    exportUrl: 'base/system/bmp/exportUrl',
    importPurseDetail: '/base/system/bmp/importPurseDetail',
    getexcelPurseDetail: 'base/system/bmp/getexcelPurseDetail'
  },
  material: {
    page: 'base/system/bmp/page'
  },
  upFile: {
    remove: 'base/up/file/remove',
    download: 'base/up/file/download',
    page: 'base/up/file/page',
    upFiles: baseUrl + '/base/up/file/upFiles',
    downloadBase64: baseUrl + '/base/up/file/download/base64'
  },
  materialsms: {
    page: 'base/system/bmp/selectInnerOrder',
    upSrmPurseCount: 'base/system/bmp/upSrmPurseCount'
  },
  purchases: {
    page: 'base/bus/purchase/page',
    getCaseTypeDate: 'base/bus/purchase/getCaseTypeDate',
    getallSupplier: 'base/bus/purchase/getallSupplier',
    applayStatus:[{ label: '待审核', value: 0 }, { label: '审核中', value: 1 }, { label: '审核完成', value: 2}, { label: '驳回', value: -1 }],
  },
  purchasesdetail: {
    page: 'base/bus/purchasedetail/page'
    // applayStatus:[{ label: '待审核', value: 0 }, { label: '审核中', value: 1 }, { label: '审核完成', value: 2}, { label: '驳回', value: -1 }],
  },
  previewOpen: {
    page: 'base/bus/purchase/getSyncSrmOpenData',
    syncDataOpen: 'base/bus/purchase/syncDataOpen'
  }
}
export default api